#! /bin/bash

cat > sales <<"EOF"
#name	sales
joe	100
jane	200
herman	150
chris	300

EOF

cat > quotas <<"EOF"
#name quotas
joe	50
jane	75
herman	80
chris	95

EOF
#delete annotate and sort 
sed '/^#/d' quotas | sort > quotas.sorted
sed '/^#/d' sales  | sort > sales.sorted
join quotas.sorted sales.sorted 
rm quotas.sorted sales.sorted quotas sales
